package com.design.pattern.strategy.handler;

import com.design.pattern.strategy.enums.AddWorkerEnum;
import org.springframework.stereotype.Service;

/**
 * @ClassName TwoHandle
 * @Description 测试实现2
 * @Author chen
 * @Date 2020/5/29 15:05
 */
@Service
public class TwoHandle extends  AbstractSyncDataHandle{

    @Override
    public String getBussNumber() {
        return AddWorkerEnum.TWO.getCode();
    }

    @Override
    public void createWorker() {
        System.out.println( "执行方法2" );
    }
}
